package com.yanfan.energy.domain.statist;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author caijinkang
 * @date 2022年08月23日 11:50
 */
public class RangeStatistics implements Serializable {
    private List<String> dates;
    private LocalDate begin;
    private LocalDate end;
    private String format;
    private String datetime;
    private String database;


    private Map<String, Double> dataPurchaseMap;

    public RangeStatistics() {
    }

    public RangeStatistics(List<String> dates, LocalDate begin, LocalDate end, String format, String datetime) {
        this.dates = dates;
        this.begin = begin;
        this.end = end;
        this.format = format;
        this.datetime = datetime;
    }

    public RangeStatistics(List<String> dates, LocalDate begin, LocalDate end, String format, String datetime, String database) {
        this.dates = dates;
        this.begin = begin;
        this.end = end;
        this.format = format;
        this.datetime = datetime;
        this.database = database;
    }

    public RangeStatistics(Map<String, Double> dataPurchaseMap, LocalDate begin, LocalDate end, String format) {
        this.dataPurchaseMap = dataPurchaseMap;
        this.dates = dates;
        this.begin = begin;
        this.end = end;
        this.format = format;
    }

    public List<String> getDates() {
        return dates;
    }

    public void setDates(List<String> dates) {
        this.dates = dates;
    }

    public LocalDate getBegin() {
        return begin;
    }

    public void setBegin(LocalDate begin) {
        this.begin = begin;
    }

    public LocalDate getEnd() {
        return end;
    }

    public void setEnd(LocalDate end) {
        this.end = end;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public Map<String, Double> getDataPurchaseMap() {
        return dataPurchaseMap;
    }

    public void setDataPurchaseMap(Map<String, Double> dataPurchaseMap) {
        this.dataPurchaseMap = dataPurchaseMap;
    }

    @Override
    public String toString() {
        return "RangeStatistics{" + "dates=" + dates + ", begin=" + begin + ", end=" + end + ", format='" + format + '\'' + ", datetime='" + datetime + '\'' + '}';
    }


}
